package com.adam.seataintegral.integral.service.impl;

import com.adam.seataintegral.integral.entity.Integral;
import com.adam.seataintegral.integral.mapper.IntegralMapper;
import com.adam.seataintegral.integral.service.IntegralService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiDaXing
 * @since 2023-04-03
 */
@Service
public class IntegralServiceImpl extends ServiceImpl<IntegralMapper, Integral> implements IntegralService {

    @Autowired
    private IntegralMapper integralMapper;

    @Override
    public void reduceIntegral(Integral integral) {
        integralMapper.reduceIntegral(integral);
    }
}
